package com.smart.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author zhanghong
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("建设单位新增请求模型")
public class JiansheUnitAddRequest implements Serializable {
    @NotEmpty(message = "建设单位名称不能为空")
    @ApiModelProperty("建设单位名称")
    private String unitName;
    @NotEmpty(message = "负责人姓名不能为空")
    @ApiModelProperty("负责人姓名")
    private String headName;
    @NotEmpty(message = "负责人手机不能为空")
    @ApiModelProperty("负责人手机")
    private String headPhone;
    @NotEmpty(message = "登录用户名不能为空")
    @ApiModelProperty("登录用户名")
    private String account;
    @ApiModelProperty("工程项目集合")
    private List<Long> projects;
}
